package com.cq.cqmall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 2级分类vo
 *
 * @author 程崎
 * @since 2022/10/13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Catalog2VO {

    /**
     * 1级父分类id
     */
    private String catalog1Id;

    /**
     * 3级子分类
     */
    private List<Catalog3VO> catalog3List;

    private String id;

    private String name;

    /**
     * 3级分类vo
     *
     * @author 程崎
     * @since 2022/10/13
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Catalog3VO {
        private String catalog2Id;
        private String id;
        private String name;
    }

}
